const baseUrl = "http://leju.bufan.cloud"

var fun = function(config) {
	return new Promise((resolve, rejected) => {
		uni.request({
			url: baseUrl + config.url,
			timeout: 50000,
			data: config.data,
			method: config.method,
			success: (res) => {
				resolve(res.data)
			}
		})
	})
}

export default fun
